package com.itheima.HomeWork.homework02;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("E:\\img1\\200.jpg");
        FileOutputStream fos = new FileOutputStream("E:\\img2\\200.jpg");
        int a;
        while ((a = fis.read()) != -1) {
            fos.write(a);
        }
        fos.close();
        fis.close();
    }
}
